package com.kuizii.base.config;

import com.kuizii.base.util.log.ConsoleLogWriter;
import com.kuizii.base.util.log.ILogWriter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AuditLogConfig {


    @ConditionalOnMissingBean(ILogWriter.class)
    @Bean
    ILogWriter writer() {
        ConsoleLogWriter logWriter = new ConsoleLogWriter();
        return logWriter;
    }
}
